ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif

RM := rm -rf
C_SRCS += ../DvdNative.c 
OBJS += ./DvdNative.o 
C_DEPS += ./DvdNative.d 
LIBS = -ldvdread
CFLAGS = -I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/include/linux -O3 -Wall -c -fmessage-length=0 -Wno-pointer-sign -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)"

# All Target
all: libdvdwrapper.so

# Tool invocations
libdvdwrapper.so: $(OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: GCC C Linker'
	gcc -shared -o "libdvdwrapper.so" $(OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '

# Other Targets
clean:
	-$(RM) $(OBJS)$(C_DEPS)$(LIBRARIES) libdvdwrapper.so
	-@echo ' '

.PHONY: all clean dependents
.SECONDARY:

